//package com.woniuxy.microsysserver.serurity.security;
//
//import com.woniuxy.microsysserver.serurity.util.MD5;
//import org.springframework.security.crypto.password.PasswordEncoder;
//import org.springframework.stereotype.Component;
//
///*
// * @author: masterhai
// * @date: 2021/3/2:17:26
// * @description:密码的处理方法类型
// */
//@Component
//public class DefaultPasswordEncoder implements PasswordEncoder {
//
//    public DefaultPasswordEncoder () {
//        this(- 1);
//    }
//
//    /**
//     * @param strength
//     *         the log rounds to use, between 4 and 31
//     */
//    public DefaultPasswordEncoder (int strength) {
//
//    }
//
//    @Override
//    public String encode (CharSequence rawPassword) {
//        return MD5.encrypt(rawPassword.toString());
//    }
//
//    @Override
//    public boolean matches (CharSequence rawPassword, String encodedPassword) {
//        return encodedPassword.equals(MD5.encrypt(rawPassword.toString()));
//    }
//}